<!doctype html>
{% extends "base.html" %}
{% block title %}系统日志{% endblock title %}

{% block page4_show %}show{% endblock page4_show %}
{% block page4.5_active %}active{% endblock page4.5_active %}

{% block main_content %}
<div class="row">
{% for host,InstallLogs in InstallLogsDict.items %}
<div class="col-12 col-lg-6">
    <div class="card">
        <div class="card-header">
            <h5 class="card-title">主机:{{ host }}</h5>
            <a href="/getinstalllog/{{ host }}" class="btn btn-primary">立即更新</a>
            <ul class="nav nav-tabs card-header-tabs pull-right" role="tablist">
                {% for app,appdata in InstallLogs.items %}
                    <li class="nav-item">
                        <a class="nav-link {{ appdata.active }}" data-toggle="tab" href="#tab-{{ app }}">{{ app }}</a>
                    </li>
                {% endfor %}
            </ul>
        </div>
        <div class="card-body">
            <div class="tab-content">
            {% for app,appdata in InstallLogs.items %}
                <div class="tab-pane fade {{ appdata.show }}" id="tab-{{ app }}" role="tabpanel">
                    <h5 class="card-title">{{ app }}的安装日志：</h5>
                    <pre>{{ appdata.log }}</pre>
                </div>
            {% endfor %}
            </div>
        </div>
    </div>
</div>
{% endfor %}
</div>
{% endblock main_content %}

{% block script %}
{% endblock script %}